package Stream流;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class test {
    public static void main(String[] args) {
        List<String> a=new ArrayList<>();
        Collections.addAll(a,"张哲峰","张叔叔","张鱼","你爹");
        a.stream().filter(t->t.startsWith("张")).filter(t->t.length()==3).forEach(t-> System.out.println(t));
    }
}
